home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(this._name != "b2_bomber")
- {
- if(framesCount++ >= 400)
- {
- moveHow = "zipoff";
- }
- if(this._x > _root.heli._x + 40 && this._y <= _root.heli._y + 20 && this._y >= _root.heli._y - 20 || random(20) == 2)
- {
- _root.enemyShoot(weapon,this);
- }
- _root.moveEnemy(this,moveHow);
- if(checkCol++ >= 1)
- {
- checkCol = 0;
- _root.checkEnemyCollision(this);
- }
- }
- }
-